package com.xsomnus.open.db.shardingjdbc.pojo.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;

/**
 * @author @xsomnus666_xiawenye★
 * @since 2019/4/30 0030 16:30
 * 当你发现自己的才华撑不起野心时，就请安静下来学习吧
 */
public enum GenderEnum implements IEnum<Integer> {
    BOY(1),
    GIRL(2);

    private final int code;

    GenderEnum(int code) {
        this.code = code;
    }

    @Override
    public Integer getValue() {
        return code;
    }
}
